
if(WIN32)
    cmake_minimum_required (VERSION 3.0)
else(UNIX)
    cmake_minimum_required (VERSION 2.8)
endif(WIN32)


project (MoveSenseCamera)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

message ("cxx Flags: " ${CMAKE_CXX_FLAGS})

add_subdirectory (MoveSenseCamera)
add_subdirectory (Samples)
add_subdirectory (Tests)

if(WIN32)
    install(FILES
		${CMAKE_CURRENT_SOURCE_DIR}/README.md
		DESTINATION ${PROJECT_SOURCE_DIR}/Release/MoveSenseSDK-Windows)
else(UNIX)
	install(FILES 
		${CMAKE_CURRENT_SOURCE_DIR}/.gitignore
        ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
        ${CMAKE_CURRENT_SOURCE_DIR}/README.md
        DESTINATION ${PROJECT_SOURCE_DIR}/Release/MoveSenseSDK-Linux)
endif(WIN32)

message("Done! \n")  
